<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<base href="<?php echo base_url() ;?>">
<link href="css/reset.css" rel="stylesheet" type="text/css" />
<link href="css/layout.css" rel="stylesheet" type="text/css" />
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>谋成网络服务-页面自动跳转中……</title>
   <script type="text/javascript">
        var secs =<?=$delay?>;
        var URL ;
        function Load(url){
            URL =url;
            for(var i=secs;i>=0;i--) {
                window.setTimeout('doUpdate(' + i + ')', (secs-i) * 1000);
            }
        }

        function doUpdate(num) {
            document.getElementById('ShowDiv2').innerHTML = num+'秒后自动跳转' ;
            if(num == 0) { 
                if(URL == 'back'){
                    window.history.back();
                } else {
                    window.location=URL; 
                }
            }
        }
    </script>
</head>
<body>
  <div id="redirect"> 
  <div class="h1content">
  <h1><span>系统提示</span><em>System Alert</em></h1>
  <div class="h1content_mid">
    <div id="msg"><?=$msg?></div>
    <?if ($delay!= 'back'):?>
    <div id="ShowDiv2"></div>
    <?endif;?>
    <center>
      <a href="<?=$url?>">如果页面没有自动跳转，请点击此处</a>
    </center>
  </div>
  <div class="h1content_bot"></div>
  </div><!--h1content end-->
</div> <!--redirect end-->
<script type="text/javascript">
        Load("<?=$url?>");
</script>
</body>
</html>